package com.gss.plugin.oauth2.exception;

import org.springframework.http.HttpStatus;

/**
 * @author DYang
 * @date 2023/7/21
 */
public class ServerErrorException extends OAuth2TransException{

    public ServerErrorException(String msg, Throwable t) {
        super(msg, t);
    }

    @Override
    public String getOAuth2ErrorCode() {
        return "server_error";
    }

    @Override
    public int getHttpErrorCode() {
        return HttpStatus.INTERNAL_SERVER_ERROR.value();
    }
}
